﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeaderTrain.aspx.cs" Inherits="GH.Web.UionReport.LeaderTrain" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>欢迎使用工会管理系统</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            font-size: 16px;
            font-weight: bold;
        }
    </style>
    <style type='text/css'>
        thead
        {
            font-size: 12pt;
            font-weight: bold;
            color: #444;
        }
        tbody
        {
            font-size: 10pt;
            color: #444;
        }
        td, th
        {
            border: solid 1px #E6E6E6;
            padding-left: 3px;
        }
        th
        {
            background-color: #5B8;
        }
        .alternation
        {
            background-color: #D2FFD2;
        }
        .alternation3
        {
            background-color: #DDEEDD;
        }
        .selected
        {
            background-color: #B3E1A3;
        }
    </style>
      <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../css/css.css" />
    <link rel="stylesheet" type="text/css" href="/css/jquery-ui-1.7.2.custom.css" />
    <link rel="stylesheet" type="text/css" href="../JqueryUI/themes/ui-lightness/jquery-ui-1.7.2.custom.css">
    <script type="text/javascript" src="../javascript/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="../javascript/jquery-ui-1.7.2.custom.js"></script>
    <script type="text/javascript" src="../javascript/formValidator.js"></script>
    <script type="text/javascript" src="../javascript/formValidatorRegex.js"></script>
    <script type="text/javascript" src="../javascript/Public.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/calendar.css" />
    <script type="text/javascript" src="../javascript/jquery-calendar.js"></script>
    <script type="text/javascript" src="../javascript/cal.js"></script>
    <!-- BEGIN  画面的控制  BEGIN -->

    <script type='text/javascript'>
        $(document).ready(function() {


            /////////////////////////////////////////////////画面初始化//////////////////////////////////////////////
            //初始化数据
            GetDataSumirise("SELECT");
            //初始化权限
            SetInitialRights();
            /////////////////////////////////////////////////画面初始化//////////////////////////////////////////////

            /////////////////////////////////////////////////画面共通方法//////////////////////////////////////////////
            //权限设定
            function SetInitialRights() {
                //汇总权限
                if ($('#hddRights').val() != "1") {
                    $("#btnSummarys").css({ "display": "none" });

                }
                //查看其它单位权限
                if ($('#hddOpen').val() != "1") {
                    $("#btnOpen").css({ "display": "none" });

                }
            }
            //追加行常量
            function SetRowValue(strValue1, strValue2, strValue3, strValue4, strValue5, strValue6, strValue7, strValue8, strValue9, strValue10, strValue11, strValue12, strValue13, strValue14, strValue15, strValue16, strValue17, strValue18) {
                var strRowAdd = "<tr><td align='center'>a1</td><td align='center'>a2</td><td align='center' style='display:none'>a3</td><td align='center'>a4</td><td align='center'>a5</td><td align='center'>a6</td><td align='center'>a7</td><td align='center'>a8</td><td align='center'>a9</td><td align='center'>a10</td><td align='center'>a11</td><td align='center'>a12</td><td align='center'>a13</td><td align='center'>a14</td><td align='center'>a15</td><td align='center'>a16</td><td align='center'>a17</td><td align='center'>a18</td></tr>";
                return strRowAdd.replace("a1", strValue1).replace("a2", strValue2).replace("a3", strValue3).replace("a4", strValue4).replace("a5", strValue5).replace("a6", strValue6).replace("a7", strValue7).replace("a8", strValue8).replace("a9", strValue9).replace("a10", strValue10).replace("a11", strValue11).replace("a12", strValue12).replace("a13", strValue13).replace("a14", strValue14).replace("a15", strValue15).replace("a16", strValue16).replace("a17", strValue17).replace("a18", strValue18);
            }


            //追加行数据
            function SetAddRowDataValue(RowNo) {
                var strRemark = " ";
                //var UninonId = GetUionListFirstId();
                var UninonId = "";
                return SetRowValue(RowNo,   //a1
                                        $("#lblUnionValue").text(), //单位 a2
                                        $("#hddUnionID").val(),  //a3单位CD
                                        "", //a4
                                        SetInputDefaultValue("", 3), //a5
                                        SetInputDefaultValue("", 3), //a6
                                        SetInputDefaultValue("", 3), //a7
                                        SetInputDefaultValue("", 3), //a8
                                        "", //a9
                                        SetInputDefaultValue("", 3), //a10
                                        SetInputDefaultValue("", 3), //a11
                                        SetInputDefaultValue("", 3), //a12
                                        SetInputDefaultValue("", 3), //a13
                                        SetInputDefaultValue("", 3), //a14
                                        SetInputDefaultValue("", 3),  //a15
                                        SetInputDefaultValue("", 3), //a16
                                        SetInputDefaultValue("", 3), //a17
                                        "" //a18); 
                                        );
            }

            function IsExits(theDate, theUnionID, rights) {
                var strReturnValue = "0";
                queryStr = "FormFlg=LeaderTrain"
                                            + "&UpdateFlg=Update"
                                            + "&UnionID=" + theUnionID//单位编号
                                            + "&strName=" + theDate//年份
                                            + "&id=" + rights; //权限控制
                $.ajax
                                            ({
                                                async: false,
                                                type: "post", //ajax请求方式
                                                url: "../AjaxExist.aspx", //请求服务器地址
                                                datatype: "json", //希望数据库返回的数据类型
                                                data: queryStr, //发送给服务器的数据
                                                processData: false, //阻止数据被自动转换为url编码
                                                success: function(data) {//请求成功则调用该函数
                                                    if (data == "0") {

                                                        strReturnValue = "0";

                                                    }
                                                    else {

                                                        strReturnValue = "1";

                                                    }
                                                }
                                            });
                return strReturnValue;

            }

            //对应业务信息
            function GetDataSumirise(RightsFlg) {

                //清空明细显示
                $("#example>tbody>tr").each(function(i, item) {
                    if (i > 0) {
                        $(this).remove();
                    }
                });
                //权限
                RightsFlg = $("#hddRights").val();

                if ($("#hddRights").val() == "0") {

                    $('#hddSumarry').val("0");
                } else {

                    $('#hddSumarry').val("1");
                }

                //明细赋值
                var strStrHtml = "";
                var queryString = "time=" + new Date() + "&TransFlg=LeaderTrain" + "&RightsFlg=" + RightsFlg + "&theYear=" + $("#lbltheYear").text();
                $.ajax
                        ({
                            async: false,
                            type: "post", //ajax请求方式
                            url: "../ajaxGetJason.aspx", //请求服务器地址
                            datatype: "json", //希望数据库返回的数据类型
                            data: queryString, //发送给服务器的数据
                            processData: false, //阻止数据被自动转换为url编码
                            success: function(data) {//请求成功则调用该函数
                                var temp = eval(data);
                                if (temp) {
                                    $.each(temp, function(i, item) {
                                        var strTr = "<tr style='height: 18px;'><td align='center'>" + (i + 1)
                                                  + "</td><td align='center'>" + item["单位名称"]
                                                  + "</td><td align='center' style='display:none'>" + item["单位"]
                                                  + "</td><td align='center'>" + item["所属基层分工会数"]
                                                  + "</td><td align='center'>" + item["省公司所属企业分工会数"]
                                                  + "</td><td align='center'>" + item["省公司控股分工会数"]
                                                  + "</td><td align='center'>" + item["分工会数"]
                                                  + "</td><td align='center'>" + item["劳务人员分工会数"]
                                                  + "</td><td align='center'>" + item["所属基层工会小组数"]
                                                  + "</td><td align='center'>" + item["省公司所属工会小组数"]
                                                  + "</td><td align='center'>" + item["省公司控股工会小组数"]
                                                  + "</td><td align='center'>" + item["工会小组数"]
                                                  + "</td><td align='center'>" + item["劳务人员工会小组数"]
                                                  + "</td><td align='center'>" + item["专职工会干部数"]
                                                  + "</td><td align='center'>" + item["培训班次"]
                                                  + "</td><td align='center'>" + item["培训人次"]
                                                  + "</td><td align='center'>" + item["年度培训人数"] + "";

                                        if (item["年度培训率"] == "") {
                                            strTr = strTr + "</td><td align='center'>" + item["年度培训率"];
                                        }
                                        else {
                                            strTr = strTr + "</td><td align='center'>" + item["年度培训率"] + "%";
                                        }
                                        strTr = strTr + "</td></tr> ";
                                        strStrHtml += strTr;
                                    });
                                    $("#example").append(strStrHtml);
                                }
                            }
                        });
            }
            function AddRowEvent(intRowNo) {


                // 2
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(4)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(4)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(5)").find('input').val();
                    var intB3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(6)").find('input').val();
                    var intB4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(7)").find('input').val();
                    if (!isNumber(intB1)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(4)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(4)").find('input').select();
                        return;
                    }
                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    var intC3 = strToNum(intB3);
                    var intC4 = strToNum(intB4);
                    var intCTotal = intC1 + intC2 + intC3 + intC4;

                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").empty();
                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").append(intCTotal);
                });
                //3
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(5)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(4)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(5)").find('input').val();
                    var intB3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(6)").find('input').val();
                    var intB4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(7)").find('input').val();

                    if (!isNumber(intB2)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(5)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(5)").find('input').select();
                        return;
                    }

                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    var intC3 = strToNum(intB3);
                    var intC4 = strToNum(intB4);
                    var intCTotal = intC1 + intC2 + intC3 + intC4;

                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").empty();
                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").append(intCTotal);
                });
                // 4
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(6)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(4)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(5)").find('input').val();
                    var intB3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(6)").find('input').val();
                    var intB4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(7)").find('input').val();

                    if (!isNumber(intB3)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(6)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(6)").find('input').select();
                        return;
                    }

                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    var intC3 = strToNum(intB3);
                    var intC4 = strToNum(intB4);
                    var intCTotal = intC1 + intC2 + intC3 + intC4;

                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").empty();
                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").append(intCTotal);
                });
                // 5
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(7)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(4)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(5)").find('input').val();
                    var intB3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(6)").find('input').val();
                    var intB4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(7)").find('input').val();
                    if (!isNumber(intB4)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(7)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(7)").find('input').select();
                        return;
                    }
                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    var intC3 = strToNum(intB3);
                    var intC4 = strToNum(intB4);
                    var intCTotal = intC1 + intC2 + intC3 + intC4;

                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").empty();
                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").append(intCTotal);
                });




                // 7
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(9)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(9)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(10)").find('input').val();
                    var intB3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(11)").find('input').val();
                    var intB4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(12)").find('input').val();
                    if (!isNumber(intB1)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(9)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(9)").find('input').select();
                        return;
                    }
                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    var intC3 = strToNum(intB3);
                    var intC4 = strToNum(intB4);
                    var intCTotal = intC1 + intC2 + intC3 + intC4;
                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(8)").empty();
                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(8)").append(intCTotal);
                });



                // 7
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(10)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(9)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(10)").find('input').val();
                    var intB3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(11)").find('input').val();
                    var intB4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(12)").find('input').val();
                    if (!isNumber(intB2)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(10)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(10)").find('input').select();
                        return;
                    }
                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    var intC3 = strToNum(intB3);
                    var intC4 = strToNum(intB4);
                    var intCTotal = intC1 + intC2 + intC3 + intC4;

                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(8)").empty();
                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(8)").append(intCTotal);
                });


                // 8
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(11)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(9)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(10)").find('input').val();
                    var intB3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(11)").find('input').val();
                    var intB4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(12)").find('input').val();
                    if (!isNumber(intB3)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(11)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(11)").find('input').select();
                        return;
                    }
                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    var intC3 = strToNum(intB3);
                    var intC4 = strToNum(intB4);
                    var intCTotal = intC1 + intC2 + intC3 + intC4;

                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(8)").empty();
                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(8)").append(intCTotal);
                });


                // 9
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(12)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(9)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(10)").find('input').val();
                    var intB3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(11)").find('input').val();
                    var intB4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(12)").find('input').val();
                    if (!isNumber(intB4)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(12)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(12)").find('input').select();
                        return;
                    }
                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    var intC3 = strToNum(intB3);
                    var intC4 = strToNum(intB4);
                    var intCTotal = intC1 + intC2 + intC3 + intC4;

                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(8)").empty();
                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(8)").append(intCTotal);
                });



                // 11
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(13)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(13)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(16)").find('input').val();
                    if (!isNumber(intB1)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(13)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(13)").find('input').select();
                        return;
                    }
                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    if (intC1 != 0) {
                        var intCTotal = FormatNumber(intC2 / intC1);
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(17)").empty();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(17)").append(intCTotal);
                    }


                });



                // 11
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(14)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(14)").find('input').val();
                    if (!isNumber(intB1)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(14)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(14)").find('input').select();
                        return;
                    }
                });


                // 11
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(15)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(15)").find('input').val();
                    if (!isNumber(intB1)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(15)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(15)").find('input').select();
                        return;
                    }
                });

                // 11
                $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(16)").find('input').blur(function() {
                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(13)").find('input').val();
                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(16)").find('input').val();
                    if (!isNumber(intB2)) {
                        alert("请输入数字。");
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(16)").find('input').focus();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(16)").find('input').select();
                        return;
                    }
                    var intC1 = strToNum(intB1);
                    var intC2 = strToNum(intB2);
                    if (intC1 != 0) {
                        var intCTotal = FormatNumber(intC2 / intC1);
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(17)").empty();
                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(17)").append(intCTotal);
                    }


                });

            }

            //                function RateChange(intRowNo) {
            //                    //1.第1-1项=2-1项+3-1项+4-1项+5-1项。
            //                    var intB1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(6)").find('input').val();
            //                    var intB2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(9)").find('input').val();
            //                    var intB3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(12)").find('input').val();
            //                    var intB4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(15)").find('input').val();
            //                    intBTotal = strToint(intB1) + strToint(intB2) + strToint(intB3) + strToint(intB4);
            //                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").empty();
            //                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(3)").append(intBTotal);
            //                    //2.第1-2项=2-2项+3-2项+4-2项+5-2项。

            //                    var intC1 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(7)").find('input').val();
            //                    var intC2 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(10)").find('input').val();
            //                    var intC3 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(13)").find('input').val();
            //                    var intC4 = $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(16)").find('input').val();

            //                    intCTotal = strToint(intC1) + strToint(intC2) + strToint(intC3) + strToint(intC4);
            //                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(4)").empty();
            //                    $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(4)").append(intCTotal);
            //                    if (intCTotal != "" && intCTotal != 0) {
            //                        var intDTotal = FormatNumber(intCTotal / intBTotal);
            //                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(5)").empty();
            //                        $("#example>tbody>tr:eq(" + intRowNo + ")").find("td:eq(5)").append(intDTotal);
            //                    }

            //                }
            /////////////////////////////////////////////////画面共通方法//////////////////////////////////////////////


            /////////////////////////////////////////////////画面事件//////////////////////////////////////////////
            $('#example').find('input').live("keypress", function() {
                KeyPressOnlyNumber();
            });


            //追加鼠标事件 行选择
            $('tbody > tr', $('#example')).live("click", function() {
                $('.selected').removeClass('selected');
                $(this).addClass('selected'); //this 表示引发事件的对象，但它不是 jquery 对象
                var tr_id = $(this).find("td:eq(0)").text();
                //对隐藏控件设定当前行的值
                $('#txtRowNo').val(tr_id);
            }).hover(		//注意这里的链式调用
					            function() {
					                $(this).addClass('mouseOver');
					            },
			            function() {
			                $(this).removeClass('mouseOver');
			            }
               );
            //行删除
            $('#btnDelete').click(function() {
                if ($.trim($('#txtRowNo').val()) == "") {
                    alert("请选择行");
                    return;
                }
                if (!window.confirm("请确认是否删除记录。 ")) {
                    return;
                }
                var rows = $('#txtRowNo').val();

                var theID = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(2)").text();
                var theDate = $("#lbltheYear").text();

                var theDeleteString = "ID=" + theID //ID编号
                                           + "&theDate=" + theDate
                                           + "&UpdateFlg=" + "Update"
                                           + "&FormFlg=" + "LeaderTrain";


                $.ajax
                        ({
                            async: false,
                            type: "post", //ajax请求方式
                            url: "../AjaxDelete.aspx", //请求服务器地址
                            datatype: "json", //希望数据库返回的数据类型
                            data: theDeleteString, //发送给服务器的数据
                            processData: false, //阻止数据被自动转换为url编码
                            success: function(data) {//请求成功则调用该函数
                                if (data == "OK") {
                                    alert("删除成功！")
                                    var i = 3;
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i++ + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                                    $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();

                                }
                                else {
                                    alert("删除失败！")
                                }
                            }
                        });

            });

            //插入行
            $('#btnAdd').click(function() {
                var tr_id = $("#example>tbody>tr:last").find("td:eq(0)").text();
                if ($.trim(tr_id) == "序号" || $.trim(tr_id) == "") {
                    tr_id = 0;
                }
                var id = parseInt(tr_id) + 1;
                $("#example").append(SetAddRowDataValue(id));
                //追加Select Change事件
                AddRowEvent(id);
            });

            //行编辑
            $('#btnEdit').click(function() {
                if ($.trim($('#txtRowNo').val()) == "") {
                    alert("请选择行");
                    return;
                }
                var rows = $('#txtRowNo').val();

                var i = 4;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++; i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                i++;
                editedContent4 = $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").text();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").empty();
                $("#example>tbody>tr:eq(" + rows + ")").find("td:eq(" + i + ")").append(SetInputDefaultValue(editedContent4, 10));
                AddRowEvent(rows);
            });

            var blnCheckProgressLoop = true;
            /// <summary>
            /// <p><b>方法名：</b>CreateUpdateString</p>
            /// <p><b>概要説明:</b>ajax向后台传的参数，区分ID和子区分ID</p>
            /// <p><b>作者  :</b>程明亮</p>
            /// <p><b>日期  :</b>2009/07/24</p>
            /// <p><b>修正履历:</b></p>
            /// </summary>
            function CreateUpdateString() {
                blnCheckProgressLoop = true;
                var Item0 = ""; //单位
                var Item1 = ""; //各类员工合计
                var Item2 = ""; //各类员工会员合计
                var Item3 = ""; //各类员工入会率
                var Item4 = ""; //省公司所属企业全民所有制员工数
                var Item5 = ""; //省公司所属企业全民所有制员工会员数
                var Item6 = ""; //同类员工入会率
                var Item7 = ""; //省公司控股代管县供电公司员工数
                var Item8 = ""; //省公司控股代管县供电公司员工会员数
                var Item9 = ""; //同类员工入会率
                var Item10 = ""; //多经企业员工数
                var Item11 = ""; //多经企业员工会员数
                var Item12 = ""; //同类员工入会率
                var Item13 = ""; //聘用各类劳务人员总数
                var Item14 = ""; //聘用各类劳务人员会员总数
                var Item15 = ""; //同类员工入会率
                $("#example").find("tr:not(:eq(0))").each(function() {
                    var i = 2;
                    if ($(this).find('td:eq(6)').find('input').length > 0) {
                        //单位
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item0 = Item0 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item0 = Item0 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //各类员工合计
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item1 = Item1 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item1 = Item1 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //各类员工会员合计
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item2 = Item2 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item2 = Item2 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //各类员工入会率
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item3 = Item3 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item3 = Item3 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //省公司所属企业全民所有制员工数
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item4 = Item4 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item4 = Item4 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //省公司所属企业全民所有制员工会员数
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item5 = Item5 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item5 = Item5 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //同类员工入会率
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item6 = Item6 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item6 = Item6 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //省公司控股代管县供电公司员工数
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item7 = Item7 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item7 = Item7 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //省公司控股代管县供电公司员工会员数
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item8 = Item8 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item8 = Item8 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //同类员工入会率
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item9 = Item9 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item9 = Item9 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //多经企业员工数
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item10 = Item10 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item10 = Item10 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //多经企业员工会员数
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item11 = Item11 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item11 = Item11 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //同类员工入会率
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item12 = Item12 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item12 = Item12 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //聘用各类劳务人员总数
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item13 = Item13 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item13 = Item13 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //聘用各类劳务人员会员总数
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item14 = Item14 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item14 = Item14 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;
                        //同类员工入会率
                        if ($(this).find('td:eq(' + i + ')').find('input').length > 0) {
                            Item15 = Item15 + $(this).find('td:eq(' + i + ')').find('input').val() + ",";
                        }
                        else {
                            Item15 = Item15 + $(this).find('td:eq(' + i + ')').text() + ",";
                        }
                        i++;

                    }



                })

                var queryString = "Item0=" + Item0
                                   + "&Item1=" + Item1
                                   + "&Item2=" + Item2
                                   + "&Item3=" + Item3
                                   + "&Item4=" + Item4
                                   + "&Item5=" + Item5
                                   + "&Item6=" + Item6
                                  + "&Item7=" + Item7
                                  + "&Item8=" + Item8
                                  + "&Item9=" + Item9
                                  + "&Item10=" + Item10
                                  + "&Item11=" + Item11
                                  + "&Item12=" + Item12
                                  + "&Item13=" + Item13
                                  + "&Item14=" + Item14
                                  + "&Item15=" + Item15
                                  + "&theYear=" + $("#lbltheYear").text()
                                  + "&UpdateFlg=UpdateFlg"
                                  + "&FormFlg=" + "LeaderTrain";
                return queryString;
            };

            //提交画面所有数据
            $('#btnSave').click(function() {
                $.ajax
                ({
                    async: false,
                    type: "post", //ajax请求方式
                    url: "../ajaxUpdate.aspx", //请求服务器地址
                    datatype: "json", //希望数据库返回的数据类型
                    data: CreateUpdateString(), //发送给服务器的数据
                    processData: false, //阻止数据被自动转换为url编码
                    success: function(data) {//请求成功则调用该函数
                        if (data == "OK") {
                            alert("更新成功！")
                            var flog = "SELECT";
                            if ($("#hddSumarry").val() == "1") {
                                flog = "Summary";
                            }
                            GetDataSumirise(flog);
                        }
                        else {
                            alert("更新失败！")
                        }
                    }
                });

            });

            $("#datepanle").dialog({
                bgiframe: true,
                autoOpen: false,
                height: 150,
                modal: true,
                draggable: true,
                buttons: {
                    '提交': function() {
                        $("#lbltheYear").text($("#txtDate").val());
                        GetDataSumirise("SELECT");

                        var queryString = "";
                        var FormFlg = "SelectCurrentYear"; //处理画面区分，对应不同的后台业务处理

                        queryString = "FormFlg=" + FormFlg
                                   + "&UpdateFlg=" + "Update"
                                    + "&Id=" + $("#txtDate").val();
                        $(this).dialog('close');
                        $.ajax
                            ({
                                async: false,
                                type: "post", //ajax请求方式
                                url: "../ajaxUpdate.aspx", //请求服务器地址
                                datatype: "json", //希望数据库返回的数据类型
                                data: queryString, //发送给服务器的数据
                                processData: false, //阻止数据被自动转换为url编码
                                success: function(data) {//请求成功则调用该函数
                                    if (data == "OK") {
                                        window.close();
                                    } else {
                                        window.close();
                                    }
                                }
                            });


                    },
                    '取消': function() {
                        $(this).dialog('close');
                    }
                },
                close: function() {
                    $("#txtDate").val("");
                }
            });

            //单位选择画面

            $('#btnNew').click(function() {

                btnName = "Add";

                $("#datepanle").dialog('open');
                $('#txtRowNo').val("");
            });
            //选择日期
            $('#btnOpenYear').click(function() {
                window.showModalDialog("EmployMemberShipRateDateDialog.aspx?Random=" + Math.random(), window, "dialogWidth:173px;dialogHeight:400px;status=no;help=no;scroll:no");
                var submitForm = document.getElementById("mainForm");
                submitForm.submit();
                //清空当前行号
                $('#txtRowNo').val("");
            });
            //打印
            $('#btnPrintView').click(function() {
                if ($("#example").find("tr").length == 1) {
                    alert("没有可打印的数据！");
                    return;
                }
                if ($('#hddSumarry').val() == "1") {
                    openwindow("LeaderTrainPrint.aspx?Random=" + Math.random() + " &RightsFlg=" + "Summary", 'newwindow', 1100, 600);
                }
                else {
                    openwindow("LeaderTrainPrint.aspx?Random=" + Math.random() + " &RightsFlg=" + "SELECT", 'newwindow', 1100, 600);
                }
            });

            $('#btnExcelExport').click(function() {
                if ($("#example").find("tr").length == 1) {
                    alert("没有可导出的数据！");
                    return;
                }
                if ($('#hddSumarry').val() == "1") {

                    window.open("../Common/ExcelExport.aspx?Random=" + Math.random() + "&TransFlg=LeaderTrain" + "&Action=Summary" + "&TheDate=" + $("#lbltheYear").text(), "win");
                }
                else {
                    window.open("../Common/ExcelExport.aspx?Random=" + Math.random() + "&TransFlg=LeaderTrain" + "&Action=SELECT" + "&TheDate=" + $("#lbltheYear").text() + "&UnionID=" + $("#hddUnionID").val(), "win");
                }
//                window.open("../Common/ExcelExport.aspx?Random=" + Math.random() + "&TransFlg=Organizations", "win");
            });


            /////////////////////////////////////////////////画面事件//////////////////////////////////////////////


        });
    	
    </script>

    <!-- END    画面的控制  END   -->
</head>
<body>
    <form id="mainForm" runat="server">
    <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table width="99%" cellpadding="0" cellspacing="0" class="table">
                    <tr>
                        <td valign="top">
                            <table width="100%" class="top" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td style="height: 22px;">
                                        &nbsp;<b>当前位置:</b>&nbsp;<a href="#">工会管理</a>&nbsp;>>&nbsp;<a href="#">各级工会组织、专职工会干部、工会干部培训统计</a><input
                                            id="txtRowNo" type="text" style="display: none" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 5px">
                        </td>
                    </tr>
                    <tr>
                        <td align="right" valign="middle" style="border: thin dotted #C0C0C0; background-color: #C5E5FC">
                            <img alt="" id="btnNew" src="../images/button/btnOpenAdd.gif" />
                            &nbsp;
                            <img alt="" id="btnOpenYear" src="../images/button/btnOpen.gif" />
                            &nbsp;
                            <img alt="" id="btnSave" src="../images/button/btnSave.gif" />
                            &nbsp;
                            <img alt="" id="btnPrintView" src="../images/button/btnPrint.gif" />
                            <!--&nbsp;
                                <img alt="" id="btnPrint" src="../images/button/btnPrintSet.gif" />-->
                            &nbsp;&nbsp;
                            <img alt="" id="btnDelete" src="../images/button/btnDeleteRow.gif" />
                            &nbsp;
                            <img alt="" id="btnEdit" src="../images/button/btnEditRow.gif" />
                            &nbsp;
                            <img alt="" id="btnExcelExport" src="../images/button/btnExcelExport.gif" />
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 5px">
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 30px" align="center" class="style1">
                            <asp:Label ID="lbltheYear" runat="server" />年度工会组织建设统计表3—各级工会组织、专职工会干部、工会干部培训统计
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table id='example1' style="width: 98%; border-collapse: collapse;">
                                <!--<thead style="text-align:center;" >-->
                                <tr>
                                    <th rowspan="2" style="background-color: #B2DBF7" colspan="2">
                                    </th>
                                    <th rowspan="2" style="background-color: #B2DBF7">
                                        所属基层分工会数
                                    </th>
                                    <th style="background-color: #B2DBF7" colspan="4">
                                        其 中
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7" rowspan="2">
                                        所属基层工会小组数
                                    </th>
                                    <th style="background-color: #B2DBF7" colspan="4">
                                        其 中
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7" rowspan="2">
                                        专职工会干部数（含控股代管县级供公司专职工会干部）
                                    </th>
                                    <th style="width: 100px; background-color: #B2DBF7" colspan="2" rowspan="2">
                                        当年各级工会举办工会干部、积极分子业务培训班次数以及培训人次
                                    </th>
                                    <th style="width: 100px; background-color: #B2DBF7" colspan="2" rowspan="2">
                                        当年专职工会干部参加业务培训人数以及专职工会干部年度培训率
                                    </th>
                                </tr>
                                <tr>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        省公司所属企业分工会数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        省公司控股代管县级供电公司分工会数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        多经企业分工会数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        企业聘用各类劳务人员分工会数
                                    </th>
                                    <%--<th style="width: 50px; background-color: #B2DBF7">
                                            所属基层工会小组数</th>--%>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        省公司所属企业工会小组数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        省公司控股代管县级供电公司工会小组数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        多经企业工会小组数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        企业聘用各类劳务人员工会小组数
                                    </th>
                                </tr>
                                <!--</thead>-->
                                <!--<tbody id='content'>-->
                                <!--</tbody>-->
                               <%-- <tr style="height: 0px">
                                    <th style="width: 40px; background-color: #B2DBF7">
                                    </th>
                                    <th style="background-color: #B2DBF7">
                                    </th>
                                    <th style='display: none'>
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                </tr>--%>
                                <tr>
                                    <th style="width: 40px; background-color: #B2DBF7">
                                        序号
                                    </th>
                                    <th style="background-color: #B2DBF7">
                                        单位
                                    </th>
                                    <th style='display: none'>
                                        单位
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        1
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        2
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        3
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        4
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        5
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        6
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        7
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        8
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        9
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        10
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        11
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        12-1<br />
                                        班次
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        12-2<br />
                                        人次
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        13-1<br />
                                        人数
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                        13-2<br />
                                        百分率
                                    </th>
                                </tr>
                            </table>
                            <div style="WIDTH: 98%; height:252px;OVERFLOW-x:none;OVERFLOW-y:scroll;scrollbar-face-color:#70807d; scrollbar-arrow-color:#ffffff; scrollbar-highlight-color:#ffffff; scrollbar-3dlight-color:#70807d; scrollbar-shadow-color:#ffffff; scrollbar-darkshadow-color:#70807d; scrollbar-track-color:#ffffff">
                            <table id='example' style="width: 100%; border-collapse: collapse;">
                                <!--<thead style="text-align:center;" >-->
                                <tr style="height: 0px">
                                    <th style="width: 40px; background-color: #B2DBF7">
                                    </th>
                                    <th style="background-color: #B2DBF7">
                                    </th>
                                    <th style='display: none'>
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                    <th style="width: 50px; background-color: #B2DBF7">
                                    </th>
                                </tr>
                                <!--</thead>-->
                                <!--<tbody id='content'>-->
                                <!--</tbody>-->
                            </table>
                            </div>
                          </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hddRights" runat="server" />
    <asp:HiddenField ID="hddUnionID" runat="server" />
    <input id="hddSumarry" type="hidden" />
    <div id="datepanle" title="开始年份">
        <fieldset>
            <div style="text-align: center; vertical-align: middle">
                <input id="txtDate" type="text" maxlength="4" />年&nbsp;<font color="red">*为四位数字</font></div>
        </fieldset>
    </div>

    <script type="text/javascript">
        $("#datepanle").hide();
    </script>

    </form>
</body>
</html>
